<?PHP
class user{
    var $ID, $username, $score, $picksmade;
    
    function user($ID, $username, $score, $picksmade, $percentage){
        $this->ID = $ID;
        $this->username = $username;
        $this->score = $score;
        $this->picksmade = $picksmade;
        $this->percentage = round(($score/$picksmade)*100, 2);;
    }
    
    function getID(){
        return $this->ID;
    }
    
    function getusername(){
        return $this->username;
    }
    
    function getScore(){
        return $this->score;
    }
    
    function getPicksmade(){
        return $this->picksmade;
    }
    
    function getPercentage(){
        return $this->percentage;
    }
} 

?>